------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/lemon/Desktop/cheater/5_study2.log
  log type:  text
 opened on:  30 Nov 2024, 13:50:21

. 
.         //Panel a
.                 //Calculate correct response rate (percent values when "correct"=1) for each t
> ask
.                 insheet using study2_all_tasks.csv, clear
(10 vars, 515 obs)

.                 tabulate correct if task=="student"

    correct |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        101       98.06       98.06
          1 |          2        1.94      100.00
------------+-----------------------------------
      Total |        103      100.00

.                 tabulate correct if task=="ideology"

    correct |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         89       88.12       88.12
          1 |         12       11.88      100.00
------------+-----------------------------------
      Total |        101      100.00

.                 tabulate correct if task=="voice"

    correct |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         56       55.45       55.45
          1 |         45       44.55      100.00
------------+-----------------------------------
      Total |        101      100.00

.                 tabulate correct if task=="benefit"

    correct |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         42       40.00       40.00
          1 |         63       60.00      100.00
------------+-----------------------------------
      Total |        105      100.00

.                 tabulate correct if task=="no-benefit"

    correct |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         78       74.29       74.29
          1 |         27       25.71      100.00
------------+-----------------------------------
      Total |        105      100.00

. 
.                 //Chi-Suqared Tests of correct response rates between the voice task and the s
> tudent document task
.                 insheet using study2_voice_student.csv, clear
(10 vars, 204 obs)

.                 tabulate task correct, chi2

           |        correct
      task |         0          1 |     Total
-----------+----------------------+----------
   student |       101          2 |       103 
     voice |        56         45 |       101 
-----------+----------------------+----------
     Total |       157         47 |       204 

          Pearson chi2(1) =  52.2239   Pr = 0.000

.                 
.                 //Chi-Suqared Tests of correct response rates between the voice task and the i
> deology task
.                 insheet using study2_voice_ideology.csv, clear
(10 vars, 202 obs)

.                 tabulate task correct, chi2

           |        correct
      task |         0          1 |     Total
-----------+----------------------+----------
  ideology |        89         12 |       101 
     voice |        56         45 |       101 
-----------+----------------------+----------
     Total |       145         57 |       202 

          Pearson chi2(1) =  26.6156   Pr = 0.000

.                 
.                 //Chi-Suqared Tests of correct response rates between the voice task and the b
> enefit task
.                 insheet using study2_voice_benefit.csv, clear
(10 vars, 206 obs)

.                 tabulate task correct, chi2

           |        correct
      task |         0          1 |     Total
-----------+----------------------+----------
   benefit |        42         63 |       105 
     voice |        56         45 |       101 
-----------+----------------------+----------
     Total |        98        108 |       206 

          Pearson chi2(1) =   4.9242   Pr = 0.026

.                 
.                 //Chi-Suqared Tests of correct response rates between the voice task and the n
> o-benefit task
.                 insheet using study2_voice_no-benefit.csv, clear
(10 vars, 206 obs)

.                 tabulate task correct, chi2

           |        correct
      task |         0          1 |     Total
-----------+----------------------+----------
no-benefit |        78         27 |       105 
     voice |        56         45 |       101 
-----------+----------------------+----------
     Total |       134         72 |       206 

          Pearson chi2(1) =   8.0373   Pr = 0.005

.                 
.                 //Chi-Suqared Tests of correct response rates between the benefit task and the
>  no-benefit task
.                 insheet using study2_benefit_no-benefit.csv, clear
(10 vars, 210 obs)

.                 tabulate task correct, chi2

           |        correct
      task |         0          1 |     Total
-----------+----------------------+----------
   benefit |        42         63 |       105 
no-benefit |        78         27 |       105 
-----------+----------------------+----------
     Total |       120         90 |       210 

          Pearson chi2(1) =  25.2000   Pr = 0.000

.         
.         //Panel b
.                 //Calculate confirmation bias rate (percent values when "bias"=1) for each tas
> k
.                 insheet using study2_all_tasks.csv, clear
(10 vars, 515 obs)

.                 tabulate bias if task=="student"

       bias |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         73       70.87       70.87
          1 |         30       29.13      100.00
------------+-----------------------------------
      Total |        103      100.00

.                 tabulate bias if task=="ideology"

       bias |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         73       72.28       72.28
          1 |         28       27.72      100.00
------------+-----------------------------------
      Total |        101      100.00

.                 tabulate bias if task=="voice"

       bias |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         86       85.15       85.15
          1 |         15       14.85      100.00
------------+-----------------------------------
      Total |        101      100.00

.                 tabulate bias if task=="benefit"

       bias |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         91       86.67       86.67
          1 |         14       13.33      100.00
------------+-----------------------------------
      Total |        105      100.00

.                 tabulate bias if task=="no-benefit"

       bias |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         81       77.14       77.14
          1 |         24       22.86      100.00
------------+-----------------------------------
      Total |        105      100.00

. 
.                 //Chi-Suqared Tests of confirmation bias rates between the voice task and the 
> student document task
.                 insheet using study2_voice_student.csv, clear
(10 vars, 204 obs)

.                 tabulate task bias, chi2

           |         bias
      task |         0          1 |     Total
-----------+----------------------+----------
   student |        73         30 |       103 
     voice |        86         15 |       101 
-----------+----------------------+----------
     Total |       159         45 |       204 

          Pearson chi2(1) =   6.0439   Pr = 0.014

.                 
.                 //Chi-Suqared Tests of confirmation bias rates between the voice task and the 
> ideology task
.                 insheet using study2_voice_ideology.csv, clear
(10 vars, 202 obs)

.                 tabulate task bias, chi2

           |         bias
      task |         0          1 |     Total
-----------+----------------------+----------
  ideology |        73         28 |       101 
     voice |        86         15 |       101 
-----------+----------------------+----------
     Total |       159         43 |       202 

          Pearson chi2(1) =   4.9931   Pr = 0.025

. 
.                 //Chi-Suqared Tests of confirmation bias rates between the voice task and the 
> benefit task
.                 insheet using study2_voice_benefit.csv, clear
(10 vars, 206 obs)

.                 tabulate task bias, chi2

           |         bias
      task |         0          1 |     Total
-----------+----------------------+----------
   benefit |        91         14 |       105 
     voice |        86         15 |       101 
-----------+----------------------+----------
     Total |       177         29 |       206 

          Pearson chi2(1) =   0.0981   Pr = 0.754

. 
.                 //Chi-Suqared Tests of confirmation bias rates between the voice task and the 
> no-benefit task
.                 insheet using study2_voice_no-benefit.csv, clear
(10 vars, 206 obs)

.                 tabulate task bias, chi2

           |         bias
      task |         0          1 |     Total
-----------+----------------------+----------
no-benefit |        81         24 |       105 
     voice |        86         15 |       101 
-----------+----------------------+----------
     Total |       167         39 |       206 

          Pearson chi2(1) =   2.1498   Pr = 0.143

.                 
.                 //Chi-Suqared Tests of confirmation bias rates between the benefit task and th
> e no-benefit task
.                 insheet using study2_benefit_no-benefit.csv, clear
(10 vars, 210 obs)

.                 tabulate task bias, chi2

           |         bias
      task |         0          1 |     Total
-----------+----------------------+----------
   benefit |        91         14 |       105 
no-benefit |        81         24 |       105 
-----------+----------------------+----------
     Total |       172         38 |       210 

          Pearson chi2(1) =   3.2130   Pr = 0.073

.         
. log close
      name:  <unnamed>
       log:  /Users/lemon/Desktop/cheater/5_study2.log
  log type:  text
 closed on:  30 Nov 2024, 13:50:21
------------------------------------------------------------------------------------------------
